import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import uView from 'uview-ui';
import Tabbar from './components/Tabbar/index.vue'
import Channel from "./utils/channel.js"
import Common from "./utils/common.js"
let channelInstance = new Channel();
Vue.prototype.$channel = channelInstance;
Vue.prototype.$common = Common; //挂载全局函数 

Vue.config.productionTip = false

App.mpType = 'app'
const app = new Vue({
	...App
})

Vue.component('tab-bar', Tabbar)

// 引入请求封装，将app参数传递到配置中
require('@/utils/request.js')(app)

app.$mount()
Vue.use(uView);
// #endif

//自定义头部 高度
var sysinfo = wx.getSystemInfoSync(),
	statusHeight = sysinfo.statusBarHeight,
	isiOS = sysinfo.system.indexOf('iOS') > -1,
	navHeight;
if (!isiOS) {
	navHeight = 48;
} else {
	navHeight = 44;
}
Vue.prototype.appZtlHeight = statusHeight ? statusHeight : 10;
Vue.prototype.appNavHeight = navHeight ? navHeight : 48;
//自定义头部 高度

//高德key
Vue.prototype.gaodeKey = '093e7d32b8bf341331d986a3d180236e'






// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif